/**
 * 获取搜索结果
 */
//  导入自己处理过的axios
import request from '@/utils/request'

export const getSearchSuggestion = q=>{
  return request({
      url:'/v1_0/suggestion',
      method:'get',
      params:{
        q
      }
  })
}
/**
 *获取搜索结果
 * @param {*} q 
 */
export const getSearchResult = data=>{
  return request({
      url:'/v1_0/search',
      method:'get',
      params:data
  })
}